
package kaizone.haining.chaobohui.json;

import org.json.JSONObject;

public class EntityHuodongDetail extends JSONResponse {

    private Item data;

    public Item getData() {
        return data;
    }

    public void setData(Item data) {
        this.data = data;
    }

    public static EntityHuodongDetail parseJson(String str) {
        EntityHuodongDetail huodongDetail = new EntityHuodongDetail();
        try{
            JSONObject jsonObject = new JSONObject(str);
            
            JSONResponse response = JSONResponse.parse(jsonObject);
            huodongDetail.setJSONResponse(response);
            
            JSONObject jsondata = jsonObject.optJSONObject(JSONResponse.DATA);
            Item item = Item.parse(jsondata);
            huodongDetail.setData(item);
        }catch (Exception e) {
            e.printStackTrace();
        }
        return huodongDetail;
    }
}
